package com.malljelly.study.service;

import com.malljelly.study.vo.unionpay.service.UnionPaymentInfoRequestVo;
import com.malljelly.study.vo.unionpay.service.UnionPaymentInfoResponseVo;


/**
 * Created by 骑着蜗牛去旅行 on 2018/8/14.
 */
public interface UnionPayService {


    /**
     * 1.创建支付请求token
     *
     */
     String addPayInfoToken(UnionPaymentInfoRequestVo paymentInfo);

    /**
     * 2.使用token查找支付信息
     *
     */
    UnionPaymentInfoResponseVo getPayInfoByToken( String token);

    /**
     * 3.使用订单号查询支付信息
     *
     */
    UnionPaymentInfoResponseVo getByOrderIdPayInfo(String orderId);

    /**
     * 4.修改订单状态
     *
     */
     Boolean updatePayInfo(UnionPaymentInfoRequestVo paymentInfo);

    /**
     * 支付
     * @param paymentInfo
     * @return
     */
    String pay(UnionPaymentInfoResponseVo paymentInfo);
}
